﻿using System.Web;
using System.Web.Optimization;

namespace Bootstrap_Project.Web
{
    public class BundleConfig
    {
        // Дополнительные сведения о Bundling см. по адресу http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*"));

            // Используйте версию Modernizr для разработчиков, чтобы учиться работать. Когда вы будете готовы перейти к работе,
            // используйте средство построения на сайте http://modernizr.com, чтобы выбрать только нужные тесты.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include("~/Scripts/bootstrap.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
            "~/Scripts/kendo/2013.3.1316/kendo.all.min.js",
            "~/Scripts/kendo/2013.3.1316/kendo.aspnetmvc.min.js",
            "~/Scripts/kendo.modernizr.custom.js"));

            /*bundles.Add(new ScriptBundle("~/bundles/angular").Include(
            "~/Scripts/angular.min.js",
            "~/Scripts/angular-kendo.min.js"));*/

            bundles.Add(new StyleBundle("~/Content/kendo/css").Include(
            "~/Content/kendo.compatibility.css",
            "~/Content/kendo/2013.3.1316/kendo.common.min.css",
            "~/Content/kendo/2013.3.1316/kendo.dataviz.min.css",
            "~/Content/kendo/2013.3.1316/kendo.bootstrap.min.css",
            "~/Content/kendo/2013.3.1316/kendo.dataviz.bootstrap.min.css"));

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                        "~/Content/themes/base/jquery.ui.core.css",
                        "~/Content/themes/base/jquery.ui.resizable.css",
                        "~/Content/themes/base/jquery.ui.selectable.css",
                        "~/Content/themes/base/jquery.ui.accordion.css",
                        "~/Content/themes/base/jquery.ui.autocomplete.css",
                        "~/Content/themes/base/jquery.ui.button.css",
                        "~/Content/themes/base/jquery.ui.dialog.css",
                        "~/Content/themes/base/jquery.ui.slider.css",
                        "~/Content/themes/base/jquery.ui.tabs.css",
                        "~/Content/themes/base/jquery.ui.datepicker.css",
                        "~/Content/themes/base/jquery.ui.progressbar.css",
                        "~/Content/themes/base/jquery.ui.theme.css"));

            bundles.IgnoreList.Clear();
        }
    }
}